package com.zhejiangzhengyuan.municipal_common.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import java.sql.Timestamp;

/**
 * @author :linju
 * @create on : 2019/11/28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="NewCase对象", description="用于新建案件接受的实体类")
public class NewCase {

    @ApiModelProperty(value = "位置")
    private String location;

    @ApiModelProperty(value = "问题道路或桥梁的具体位置")
    private String geometry;

    @ApiModelProperty(value = "告警原因")

    private String reason;

    @ApiModelProperty(value = "上报人ID")
    private Long reportUserInfoId;

    @ApiModelProperty(value = "上报时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "备注")

    private String remark;

    @ApiModelProperty(value = "案件等级")

    private String grade;

    @ApiModelProperty(value = "案件描述")
    @NotBlank
    private String caseDescribe;

    @ApiModelProperty(value = "处理意见")

    private String advice;

    @ApiModelProperty(value = "附件图片")
    private MultipartFile file;

    @ApiModelProperty(value = "新建案件的类型，道路或者桥梁")
    private String caseType;
}
